package com.daodaofun.springboot.controller;

import com.daodaofun.springboot.MyBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HomeController {


    @Autowired
    private MyBean myBean;

    @RequestMapping
    @ResponseBody
    public String home(){
        System.out.println("==============home===============");
        System.out.println(myBean);
        return "hello";
    }
}
